package as.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import as.entity.ClassHours;


public class ClassHoursDAO extends HibernateDaoSupport {
	public boolean update(ClassHours classHours) {
		try {
			this.getHibernateTemplate().saveOrUpdate(classHours);
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}
 public ClassHours get( int classHoursId) {
		 return (ClassHours)this.getHibernateTemplate().get(ClassHours.class,classHoursId);
	 }

}
